package com.hc.event.event01;

import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;

/**
 * @Author: huangcheng
 * @CreateTime: 2023-09-06  09:23
 * @Description: 自定义事件
 * @Version: 1.0
 */
public class MyCustomEvent extends ApplicationEvent {
    private String message;

    public MyCustomEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
